﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace AfterCaveStory.Core.Scenes
{
    class Menu :SceneBase
    {
        Texture2D fundo;
        GameWindow Window;

        public override void start()
        {
            this.Window = Game1.Self.Window;
            fundo = Game1.Self.Content.Load<Texture2D>("Tela Menu");
        }

        public override void update(GameTime gameTime)
        {
            if (Controller.KeyPressed(Keys.Enter))
            {
                SceneManager.setScene(new Level1());
            }

            if (Controller.KeyPressed(Keys.C))
            {
                SceneManager.setScene(new Creditos());
            }
        }

        public override void draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
        }

        public override void terminate()
        {

        }

    }
}
